<title>个人资料</title>

<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>系统设置</cite></a>
    <a><cite>个人资料</cite></a>
  </div>
</div>
  
<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
      <div class="layui-card">
        <div class="layui-card-header">个人资料</div>
        <div class="layui-card-body" pad15>
          
          <form class="layui-form layui-form-module" action="{:url('/user/index')}" method="post">
            <input type="hidden" name="id" value="{$loginUser.uid}">
          
            <div class="layui-form-item">
              <label class="layui-form-label">我的角色</label>
              <div class="layui-input-inline">
                <input type="text" value="{$group}" class="layui-input layui-disabled" disabled>
              </div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">用户名</label>
              <div class="layui-input-inline">
                <input type="text" value="{$loginUser.username}" class="layui-input layui-disabled" disabled>
              </div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">邮箱</label>
              <div class="layui-input-inline">
                <input type="text" name="email" value="{$loginUser.email}" lay-verify="required|email" autocomplete="off" class="layui-input">
              </div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">新密码</label>
              <div class="layui-input-inline">
                <input type="text" name="password" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux">6到16个字符</div>
            </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_ajax_submit_btn"><i class="layui-icon layui-icon-ok-circle"></i>提交</button>
              </div>
            </div>
          </form>
          
        </div>
      </div>
    </div>
  </div>
</div>

<script>
;!function(){
  var form = layui.form;
  form.render();
}();
</script>